package com.atguigu.gulimall.gulimall.auth.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
public class UmsMemberVo {


    @Length(min = 6,max = 18,message = "用户名长度必须在6-18之间")
    @NotEmpty(message = "用户名必须填写")
    private String username;
    /**
     * 密码
     */
    @NotEmpty(message = "密码必须提交")
    private String password;

    /**
     * 手机号码
     */
    @Pattern(regexp = "^[1]([3-9])[0-9]{9}$",message = "手机号格式错误")
    @NotEmpty(message = "手机号名必须填写")
    private String mobile;

    private String code;


    private String mobileOrName;



}
